from peewee import *
from models.base import BaseModel
from models.users import Users


class Items(BaseModel):
    name = CharField(null=True)
    type = CharField(null=True)
    user = ForeignKeyField(model=Users, backref="items")

    class Meta:
        table_name = 'items'
